Skip to content

BUG/MINOR: Prevent user addition with whitespace in password#792

Open
markkrj wants to merge 1 commit intohaproxytech:masterfrom
markkrj:fix-user-password
Open

BUG/MINOR: Prevent user addition with whitespace in password#792
markkrj wants to merge 1 commit intohaproxytech:masterfrom
markkrj:fix-user-password

Conversation

@markkrj
Copy link
Copy Markdown

@markkrj markkrj commented Mar 6, 2026

If password contains whitespace of any kind, haproxy fails to validate the config and will not start or reload.

According to man 5 crypt:

Hashed passphrases are always entirely printable ASCII, and do not contain any whitespace or the characters
     ‘:’, ‘;’, ‘*’, ‘!’, or ‘\’.

I don't know if it must be this controller's job to validate all of that. But, whitespace in the password does brake it from generating valid HAProxy config, so that is a bug.
Also, I think that emitting a warning is helpful for admins to figure out why some user cannot login.

/cc @ivanmatmati: I talked to you on Slack
/cc @hdurand0710: You fixed a bug related

If password contains whitespace of any kind, haproxy fails to validate
the config and will not start or reload
@stale
Copy link
Copy Markdown

stale bot commented Apr 11, 2026

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant